package com.buba.service.jigou;

import com.buba.pojo.Area;
import com.buba.pojo.Dept;

import java.util.List;

public interface JigouService {

    List<Area> listOrganization();

    Area getAreaForDelete(Integer id);

    int deleteAreaById(Integer id);

    int insertArea(Area area);

    int updateArea(Area area);

    Area getAreaByAreaname(String areaname);

    Area getAreaByAreacode(String areacode);

    List<Dept> listDept(Integer parentid);

    Dept getDeptByDeptcode(String deptcode);

    Dept getDeptByDeptname(String deptname);

    int insertDept(Dept dept);

    Dept getDeptInfo(Integer id);

    int deleteDeptById(Integer id);

    int updateDept(Dept dept);
}
